extends Reference

signal sizeChange(size_)
var cards=[]
var size setget ,getSize
func getSize():
	return cards.size()


func append(card):
	cards.append(card)
	emit_signal("sizeChange",getSize())
func erase(card):
	cards.erase(card)
	emit_signal("sizeChange",getSize())
func shuffle():
	cards=Assist.shuffleList(cards)
func clear():
	cards=[]
	emit_signal("sizeChange",getSize())
func pop_front():
	var card=cards.pop_front()
	emit_signal("sizeChange",getSize())
	return card
func getCards():
	return cards
func replaceCards(cardsArray):
	cards=cardsArray